<?php
/**
 * @author Inhere
 * @version v1.0
 * Use : form
 * Date : 2014-7-10
 */
namespace ulue\ext\zui;

use ulue\libs\front\Element;
use ulue\libs\front\Html;
use ulue\web\widgets;

class ModelField extends widgets\ModelField
{
    protected $type='text';

    protected $name;

    protected $attrs = [];

    static protected $model;

    protected $enableError = true;

    public function __construct($model, $name)
    {
        if ( ! self::$model ) {
            self::$model = $model;
        }

        $this->name = $name;
    }
}